package com.dkd.common.exception;

public class BizException extends RuntimeException
{
  private static final long serialVersionUID = 1L;

  /** 错误码 */
  private Integer code;

  public BizException(String msg)
  {
    super(msg);
    this.code = 500;
  }

  public BizException(String msg, Integer code)
  {
    super(msg);
    this.code = code;
  }

  public BizException(String msg, Throwable cause)
  {
    super(msg, cause);
    this.code = 500;
  }

  public Integer getCode()
  {
    return code;
  }
}